package ace.oauth2.enums;

import ace.fw.enums.BaseEnum;
import ace.oauth2.constant.OAuth2Constants;
import lombok.Getter;

/**
 * @author Caspar
 * @contract 279397942@qq.com
 * @create 2020/3/17 15:10
 * @description Integer[] OAuth2 = new Integer[]{140000, 149999};
 * 148000 至 149999 模块保留
 */
public enum OAuth2BusinessErrorEnum implements BaseEnum<String> {

    OAUTH2_SERVICE(OAuth2Constants.OAUTH2_SERVICE_CODE, OAuth2Constants.OAUTH2_SERVICE_NAME),
    NO_PERMISSION("140001", "没有权限"),
    TOKEN_INVALID("140010", "无效token"),
    TOKEN_NOT_EXIST("140011", "toke不存在"),
    ;
    @Getter
    private String code;
    @Getter
    private String desc;

    OAuth2BusinessErrorEnum(String code, String desc) {

        this.code = code;
        this.desc = desc;
    }
}
